package MyNet;

import java.net.InetAddress;
import java.net.UnknownHostException;

/*
 * InetAddress:此类表示互联网协议(IP)地址。
 * ip地址是唯一的，
 * 
 * 
 */
public class InetAddressDemo1 {
	public static void main(String[] args) throws UnknownHostException {
		InetAddress address = InetAddress.getByName("yzj");
		System.out.println(address);
	}
}
